package design.patterns.factorymode.factorymethod.maindemo;

/**
 * @Desc:
 * @author: cww
 * @DateTime: 2020-06-07 21:55
 */

public class Main {
    public static void main(String[] args) {
        Creator c1 = new ConcreteCreator1();
        Product p1 = c1.factory();
        Creator c2 = new ConcreteCreator2();
        Product p2 = c2.factory();
        p1.createProduct1();
        p2.createProduct1();
    }
}
